package com.apexedu.portal.entity;

import javax.persistence.*;
import java.math.BigDecimal;

/**
 * Created by janabo on 2014-12-5.
 */
@Entity
@Table(name = "APP_FUNCTION_CONFIG")
public class AppFunctionConfig {
    private String id;
    private String name;//功能名称
    private String style;//功能展现样式：2 首页顶部菜单   4抽屉列表
    private String img;//配图
    private Integer orderno;//排序
    private Integer functionid;//功能id（首页顶部菜单）
    private String superid;//父id(抽屉列表)
    private BigDecimal isuse;//是否启用  1是 0否
    private String link;//链接地址（抽屉列表）
    private String wid;//门户中列表信息wid  其他类型
    /**
     *
     */
  private String datainterface;
    /**
     *
     */
    private String datastyle;

    @Id
    @Column(name = "ID")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "NAME")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Basic
    @Column(name = "STYLE")
    public String getStyle() {
        return style;
    }

    public void setStyle(String style) {
        this.style = style;
    }

    @Basic
    @Column(name = "IMG")
    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    @Basic
    @Column(name = "ORDERNO")
    public Integer getOrderno() {
        return orderno;
    }

    public void setOrderno(Integer orderno) {
        this.orderno = orderno;
    }

    @Basic
    @Column(name = "FUNCTIONID")
    public Integer getFunctionid() {
        return functionid;
    }

    public void setFunctionid(Integer functionid) {
        this.functionid = functionid;
    }

    @Basic
    @Column(name = "SUPERID")
    public String getSuperid() {
        return superid;
    }

    public void setSuperid(String superid) {
        this.superid = superid;
    }

    @Basic
    @Column(name = "ISUSE")
    public BigDecimal getIsuse() {
        return isuse;
    }

    public void setIsuse(BigDecimal isuse) {
        this.isuse = isuse;
    }

    @Basic
    @Column(name = "LINK")
    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    @Basic
    @Column(name = "WID")
    public String getWid() {
        return wid;
    }

    public void setWid(String wid) {
        this.wid = wid;
    }

    @Transient
    public String getDatainterface() {
        return datainterface;
    }

    public void setDatainterface(String datainterface) {
        this.datainterface = datainterface;
    }

    @Transient
    public String getDatastyle() {
        return datastyle;
    }

    public void setDatastyle(String datastyle) {
        this.datastyle = datastyle;
    }

    @Override
    public String toString() {
        return "AppFunctionConfig{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", style='" + style + '\'' +
                ", img='" + img + '\'' +
                ", orderno=" + orderno +
                ", functionid=" + functionid +
                ", superid=" + superid +
                ", isuse=" + isuse +
                ", link='" + link + '\'' +
                ", wid='" + wid + '\'' +
                '}';
    }
}
